package loveappservice.controller;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/*Rest模式*/
@CrossOrigin
@RestController
@RequestMapping("/testdemo1")
public class test {
    @GetMapping
    public String getById() {
        System.out.println("这是一个spring boot的程序");
        return "这是一个spring boot的程序";
    }
}
